﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Yeap.Config;
using Yeap.Kernel.Unity;
using Yeap.Models;

namespace Yeap.Controllers
{
    public class HomeController : Controller
    {
        public override string Name
        {
            get
            {
                return Constants.Controllers.Home;
            }
        }
        /*
        public IUserRepository UserRepository
        {
            get
            {
                return Global.Resolve<IUserRepository>();
            }
        }
        */
        public ActionResult Index()
        {
            //var widgetModel = new HomePageWidgetModel();
            //widgetModel.ReadWidgetsByUser(LoginUtils.CurrentUser.Id);

            //var model = new HomePageModel
            //{
            //    UserLogin = LoginUtils.CurrentUserAccount.Login,
            // /   WidgetModel = widgetModel
            //};

            return View(new WidgetColumns());
            //return View("Index", model);
        }
    }
}
